<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息</title>
<script type="text/javascript" src="js/jquery-3.1.0.js"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	function up(){
		var a=$("#psd").val();
		var b=$("#pass1").val();
		var c=$("#pass2").val();
		var d=$("#pass3").val();
		var e=$("#memberid").val
	if(b=='' || c=='' || d==''){
		alert("密码不能为空！");
		return false;
	}
	if(a!=b){
		alert("密码输入有误！");
		return false;
	}else if(c!=d){
		alert("输入密码与新密码不匹配！");
		return false;
	}
	alert("密码修改成功，请重新登陆");
	}
	
</script>
</head>
<link href="tp/favico.ico" rel="shortcut icon" />
	<link href="css/m_member.css" rel="stylesheet" type="text/css"/>
<body>
	<div class="m4">
	<div class="m5">
      <h5 class="m7"><span>个人资料</span></h5>
      <div class="blank"></div>
     <form name="formEdit" action="UpdateMessage" method="post" enctype="multipart/form-data" onsubmit="return userEdit()">
     <input name="mid" type="hidden" id="memberid" value="${mem.memberId}"> 
     <input id="psd" type="hidden" value="${mem.memberPassword}">
		<table width="97%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tbody><tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">出生日期： </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF"><input   onfocus="WdatePicker()" value="${mem.memberBirthday}" class="txt"  name="birthday"></td>
                </tr>
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">性　别： </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF">
                  <input type="radio" name="sex" value="保密" ${mem.memberSex == '保密' ? 'checked' : ''}>
                    保密&nbsp;&nbsp;
                    <input type="radio" ${mem.memberSex == '男' ? 'checked' : ''} name="sex" value="男">
                    男&nbsp;&nbsp;
                    <input type="radio" ${mem.memberSex == '女' ? 'checked' : ''} name="sex" value="女">
                  女&nbsp;&nbsp; </td>
                </tr>
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">真实姓名： </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF"><input name="name" type="text" value="${mem.memberName}" size="25" class="inputBg"><span style="color:#FF0000"> *</span></td>
                </tr>
                        <tr>
           <td width="28%" align="right" bgcolor="#FFFFFF">上传头像：</td>
            <td width="72%" align="left" bgcolor="#FFFFFF">
            <input name="src" type="file" class="inputBg" >       
                 </td>
        </tr>
        		            
        		                <tr>
           <td width="28%" align="right" bgcolor="#FFFFFF" id="extend_field5i">手机：</td>
            <td width="72%" align="left" bgcolor="#FFFFFF">
            <input name="phone" type="text" class="inputBg" value="${mem.memberPhone}"><span style="color:#FF0000"> *</span>            </td>
        </tr>
        		                <tr>
                  <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_profile">
                    <input name="submit" type="submit" value="确认修改" class="bnt_blue_1" style="border:none;">
                  </td>
                </tr>
       </tbody></table>
    </form>
     <form action="UpPassw"  target="_parent" method="post" onsubmit="return up()">
       <input name="id" type="hidden" id="memberid" value="${mem.memberId}">
       <input name="tag" type="hidden" id="memberid" value="${mem.memberId}">  
     <table width="97%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tbody><tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">原密码：</td>
          <td width="76%" align="left"  bgcolor="#FFFFFF">
          <input  id="pass1" type="password" size="25" class="inputBg"></td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">新密码：</td>
          <td align="left" bgcolor="#FFFFFF" >
          <input id="pass2" name="pass3" type="password" size="25" class="inputBg"></td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">确认密码：</td>
          <td align="left" bgcolor="#FFFFFF">
          <input id="pass3" type="password" size="25" class="inputBg"></td>
        </tr>
        <tr>
          <td colspan="2" align="center" bgcolor="#FFFFFF">
            <input type="submit"  style="border:none;" value="确认修改">
          </td>
        </tr>
      </tbody></table>
    </form>
      </div>
      </div>
      
</body>
</html>